home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Netware Super Library
/
Netware Super Library.iso
/
zipfiles
/
p2z
/
segue.exe
/
NBANNER.PRG
< prev
next >
Wrap
Text File
|
1991-10-28
|
1KB
|
49 lines
*.............................................................................
*
* Program Name: NBANNER.PRG Copyright: HRF Associates, Inc.
* Date Created: 10/28/11 Language: Clipper
* Time Created: 20:41:21 Author: Bob Fogle
*
*.............................................................................
* Supplemental SEGUE function for specifiying print banner page test.
* Functionally equivilent to N_BANNER function in NETLIB library.
*
FUNCTION NBANNER_
*Purpose : To specify banner page text.
*Usage : NBANNER_([<expC1>])
* :
* Where : <expC1> = Banner text. [1..12]
* : Default = no banner.
* :
PARAMETERS btext
LOCAL mbtext
PRIVATE rtn :=0
do while .t.
* Check to make sure passed variable types are correct.
if valtype(btext)<>'C' .AND. btext<>nil
rtn = -101
exit
endi
* Set up defaults
mbtext = if(valtype(btext)=='C',uppe(alltrim(btext)),nil)
* Get/Set Banner Text
if mbtext=nil .AND. pcount()=0
rtn = PRBRNMG() // Get Banner User Name
else
* Print banner page before each document
rtn = PRBRNMS(mbtext) // Set Banner User Name
endi
exit
endd
RETURN rtn